from flask_migrate import MigrateCommand
from flask_script import Manager

from app import creat_app
import os

evn = os.environ.get('FLASK_ENV',"development")



app = creat_app(evn)
manager = Manager(app=app)
manager.add_command("db",MigrateCommand)



if __name__ == '__main__':
    manager.run()